package com.songjia.springboot.configurationProperties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 代码说明：测试@ConfigurationProperties注解中value属性的作用
 * 
 * 
 * @ConfigurationProperties(value = "jdbc")
 * 		注入plication.properties配置文件中以value开头的属性值
 * 
 * 		value的作用相当于prefix
 */
@ConfigurationProperties(value = "jdbc")
public class JdbcConnectionSettings {
	
	private String baseUrl;
	
	private String baseUsername;
	
	private String basePassword;

	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}

	public void setBaseUsername(String baseUsername) {
		this.baseUsername = baseUsername;
	}

	public void setBasePassword(String basePassword) {
		this.basePassword = basePassword;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	public String getBaseUsername() {
		return baseUsername;
	}

	public String getBasePassword() {
		return basePassword;
	}
}
